package com.jxl.application.controller.convert;


import com.jxl.domain.entity.AuthRoleBO;
import com.jxl.dto.AuthRoleDto;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface AuthRoleDtoConvert {

    AuthRoleDtoConvert INSTANCE = Mappers.getMapper(AuthRoleDtoConvert.class);

    /**
     * 类型转换
     * @param authRoleDto
     * @return
     */
    AuthRoleBO convertDtoToRoleBO(AuthRoleDto authRoleDto);

    /**
     * 集合类型转换
     * @param authRoleDtos
     * @return
     */
    List<AuthRoleBO> convertDtoToRoleBOList(List<AuthRoleDto> authRoleDtos);
}
